package com.yhhvip.lottery.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@Data
@ToString
public class ReqLotSysResources {

    private Long id;

    @NotEmpty(message = "资源名称不能为空")
    @ApiModelProperty(value = "资源名称", example = "会员统计", required = true, position = 1)
    private String name;

    @NotEmpty(message = "资源url不能为空")
    @ApiModelProperty(value = "资源url", example = "/index/member_stat", required = true, position = 2)
    private String resUrl;

    @NotNull(message = "资源类型不能为空")
    @ApiModelProperty(value = "资源类型1:一级菜单2：二级菜单3三级菜单  9：资源", example = "2", required = true, position = 3)
    private Integer type;

    @ApiModelProperty(value = "父资源", example = "14", required = true, position = 4)
    private Integer parentId;

    @ApiModelProperty(value = "排序", example = "1", required = true, position = 5)
    private Integer sort;

    @ApiModelProperty(value = "是否有下一级", example = "0", required = true, position = 6)
    private Boolean isSubordinate;

}